return TRUE;
}
+static void
+maybe_notify_mapped (GdkSurface *surface)
+{
+ if (surface->destroyed)
+ return;
+
+ if (!GDK_SURFACE_IS_MAPPED (surface))
+ {
+ gdk_synthesize_surface_state (surface, GDK_TOPLEVEL_STATE_WITHDRAWN, 0);
+ gdk_surface_invalidate_rect (surface, NULL);
+ }
+}
+
static void
gdk_wayland_surface_map_popup (GdkSurface *surface,
int width,
impl->popup.unconstrained_height = height;
impl->mapped = TRUE;
- gdk_synthesize_surface_state (surface, GDK_TOPLEVEL_STATE_WITHDRAWN, 0);
+ maybe_notify_mapped (surface);
}
static void
gdk_toplevel_install_properties (object_class, 1);
}
-static void
-maybe_notify_mapped (GdkSurface *surface)
-{
- if (surface->destroyed)
- return;
-
- if (!GDK_SURFACE_IS_MAPPED (surface))
- {
- gdk_synthesize_surface_state (surface, GDK_TOPLEVEL_STATE_WITHDRAWN, 0);
- gdk_surface_invalidate_rect (surface, NULL);
- }
-}
-
static void
reconfigure_callback (void *data,
struct wl_callback *callback,